package com.ruoyi.system.api;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PutMapping;

@Component
@FeignClient(name="ruoyi-system",contextId = "ruoyi-system2")
public interface RuoyiFeign {
    /**
     * 远程服务查岗位表
     * @return
     */
    @PutMapping("/post/list")
    AjaxResult list();

    /**
     * 远程服务查询用户表
     * @return
     */
    @PutMapping("/user/list")
    AjaxResult userList();
}
